﻿using System;
using System.Windows.Browser;

namespace SilverPortal.Util
{
	public static class RssUtil
	{
		private const string YahooPipesFeedProxyUrl = "http://pipes.yahooapis.com/pipes/pipe.run?_id=5f335772e4d6b73330d2444cdae5a186&_render=rss&feed={0}&top={1}";

		public static string ProxyRssUrl(string url, int top)
		{
			return String.Format(YahooPipesFeedProxyUrl, 
				HttpUtility.UrlEncode(url), top);
		}
	}
}
